package com.evildog.workspace.common.exception;


import com.evildog.workspace.common.enums.CommonCustomExceptionDesc;
import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.http.HttpStatus;

/**
 * 请求参数 error
 * <p>
 * 比如参数不满足系统要求
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BadRequestException extends CommonException {

    private static final long serialVersionUID = 6801519635531297845L;

    public BadRequestException() {
        this(CommonCustomExceptionDesc.BAD_REQUEST);
    }

    public BadRequestException(ICustomExceptionDesc responseStatus) {
        super(responseStatus, HttpStatus.BAD_REQUEST);
    }

}
